0793f3b4e46e28f2259aea84779efce452154431,usage/rest-server/src/main/java/brooklyn/rest/security/provider/DelegatingSecurityProvider.java,DelegatingSecurityProvider,isAuthenticated,#HttpSession#,108
Before Change
boolean authenticated = getDelegate().isAuthenticated(session) &&
modCountWhenFirstAuthenticated != null && ((Long) modCount.get()).equals(modCountWhenFirstAuthenticated);
if (authenticated) {
session.setAttribute(getModificationCountKey(), modCount.get());
}
return authenticated;
}
After Change
if (session == null) return false;
Object modCountWhenFirstAuthenticated = session.getAttribute(getModificationCountKey());
boolean authenticated = getDelegate().isAuthenticated(session) &&
Long.valueOf(modCount.get()).equals(modCountWhenFirstAuthenticated);
return authenticated;
}